package cn.liontalk.ChainResponsibilityPattern.hander;

import cn.liontalk.ChainResponsibilityPattern.CEO;
import cn.liontalk.ChainResponsibilityPattern.Director;
import cn.liontalk.ChainResponsibilityPattern.Manager;
import cn.liontalk.ChainResponsibilityPattern.Sales;

/**
 * @author: 周哲
 * @package: cn.liontalk.ChainResponsibilityPattern
 * @description: 价格处理人，负责处理客户折扣申请
 * @date: 2019/1/9 19:59
 * @version: V1.0
 */
public abstract class PriceHandler {


    /**
     * 直接后继，用来传递请求
     */
    protected PriceHandler successor;


    public void setSuccessor(PriceHandler successor) {
        this.successor = successor;
    }



    /**
     * 请求处理折扣
     * @param discount
     */
    public abstract void processDiscount(float discount);



}
